package br.com.lambdacore.validator.impl;

public class NullValidator extends ObjectValidator {

	protected NullValidator(Object object) {
		super(object);
	}

	@Override
	public boolean nil() {
		return this.getObject() == null;
	}

	@Override
	public boolean notNil() {
		return !this.nil();
	}

	public static NullValidator is(Object object) {
		return new NullValidator(object);
	}
}
